#include "mainwindow.h"

#include <DApplication>
#include <DMenu>

#include <QDebug>
#include <QHBoxLayout>

MainWindow::MainWindow(QWidget *parent)
    : DMainWindow(parent)
{
    m_titlebar = this->titlebar();
    m_titlebar->setDisableFlags(Qt::WindowMinimizeButtonHint
                                | Qt::WindowMaximizeButtonHint
                                | Qt::WindowSystemMenuHint);
    m_titlebar->setAutoHideOnFullscreen(true);
    m_titlebar->setIcon(qApp->productIcon());
    m_titlebar->setTitle(qApp->applicationName());
}

MainWindow::~MainWindow()
{
}
